<?php
error_reporting(E_ALL);
            ini_set('display_errors','On');
?>
<script>
 $(document).ready(function() {
<?php

print_r($this->js->request1('url'));
// echo $this->js->request("dsd", array('update' => '#PageModel', 'div' => false, 'type' => 'json', 'async' => false,'dataExpression'=>true));
// echo $this->js->get('#PageMake')->event('change',null);

?>
});
</script> 
<div class="block bgWhite">
	<div class="content"><div id='bloglist'></div></div>
</div>
<a id="check" href="return javascript:void()">hello</a>

<div class="block bgWhite">
	<div class="content">
		<img src="http://catalizt.com/wp-content/uploads/2013/07/blog-banner.jpg" width="990" alt="" />
	</div>
	<div class="content" id="custom">
		<?php foreach($items as $item){ ?>
		<a href="./blog/detail/<?php echo $item['id'];?>">
			<h1 style="font-size: 20px; font-weight: bold; margin-bottom:5px;"><?php echo $item['title']; ?></h1>
		</a>	
		<div>
			<?php echo substr($item['content'], 0, 750).' [...]'; ?>
			<span style="float:right;padding-top:10px;"><?php echo $item['last_update']; ?></span>
		</div>
		<hr style="margin: 10px 0px;">
		<?php }?>
		<span style="float:right;margin-top:20px;"><a href="/mvc/blog/create/"> New Article</a></span>
	</div>
</div>